$(function(){
	vm.queryArticleList();
});

var vm = new Vue({
	el:'#vwrap',
	data:{
		articleList:[]
	},
	methods: {
		queryArticleList: function () {
			var url="./rest/article.list.get";
			layer.load('.articles-ul');
			console.log("article url="+url);
			$.get(url,"",function(r){
				console.log(r);
				if(r){layer.closeAll('loading');}
				vm.articleList=r;
			});
		},
		articleDetail:function(r){
			console.log("=id==="+r);
			location.href="./article?aid="+r;
		}
	}
});